import Mock from 'mockjs'

const notification = Mock.mock({
  'items|3': [{
    'id|+1': 1,
    'content': '@sentence(3,8)',
    'principal': 'hanniko',
    'createTime': '@now'
  }]
})

export default [
  {
    url: '/api/notification/getAll',
    type: 'get',
    response: config => {
      const data = notification.items
      return {
        code: 20000,
        data: data
      }
    }
  }
]